﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAO;
using BUS;

namespace FDeal.WUC
{
    public partial class WUC_DN_DsDonHang : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadThongTin();
            }

        }

        public void LoadThongTin()
        {
            string idDN = ((THONGTINTAIKHOAN)(Session["nguoiDung"])).IDTAIKHOAN;

            DonHangBUS donhangBus = new DonHangBUS();

            List<DONHANG> _dsDonhang = donhangBus.getDsDonHangCuaDN(idDN);

            gv_DsDonHang.DataSource = _dsDonhang;
            gv_DsDonHang.DataBind();

        }

        protected void gv_DsDonHang_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
        }

        protected void gv_DsDonHang_RowDeleted(object sender, GridViewDeletedEventArgs e)
        {
        }
    }
}